package com.shop.enums;

import com.shop.entity.Category;
import lombok.Getter;

import javax.persistence.criteria.CriteriaBuilder;

/**
 * description: 该文件说明
 *
 * @author zhaoxiaozhao（xiaozhao.zhao@ucarinc.com）
 * @version 1.0
 * @date 2018/10/11 10:59
 **/
@Getter
public enum CategoryStatuEnum {
    CATEGORY_OBTAIN(1,"下架"),
    CATEGORY_SHELF(0,"上架"),;

    private Integer code;
    private String message;

    CategoryStatuEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    public boolean equals(Integer code){
         if(null == code){
            return false;
         }
         if(this.code == code){
             return true;
         }
         return false;
    }
}
